package com.ruoyi.commodity.domain;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品信息对象 tb_product_sku
 * 
 * @author ruoyi
 * @date 2023-09-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品信息id */
    private Long id;

    /** 商品ID (关联product表ID) */
    @Excel(name = "商品ID (关联product表ID)")
    private Long productId;

    /** 单品尺寸 */
    @Excel(name = "单品尺寸")
    private String size;

    /** 产品重量 */
    @Excel(name = "产品重量")
    private BigDecimal productWeight;

    /** 包装重量 */
    @Excel(name = "包装重量")
    private BigDecimal packageWeight;

    /** 周转箱重量 */
    @Excel(name = "周转箱重量")
    private BigDecimal turnoverBoxWeight;

    /** 颜色 */
    @Excel(name = "颜色")
    private String colorId;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品成本 */
    @Excel(name = "商品成本")
    private BigDecimal cost;

    /** 交货周期 */
    @Excel(name = "交货周期")
    private String leadTime;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long operSize;

    /** 周转箱尺寸 */
    @Excel(name = "周转箱尺寸")
    private String containerSize;

    /** 包装尺寸 */
    @Excel(name = "包装尺寸")
    private String packageSize;

    /** 装箱数 */
    @Excel(name = "装箱数")
    private Long boxSize;

    /** 包材 */
    @Excel(name = "包材")
    private String packMaterial;

    /** 商品材质 */
    @Excel(name = "商品材质")
    private String productMaterial;

    @Excel(name = "供应商ID")
    private Long vendorId;

    private String deleteStatus;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("size", getSize())
            .append("productWeight", getProductWeight())
            .append("packageWeight", getPackageWeight())
            .append("colorId", getColorId())
            .append("price", getPrice())
            .append("cost", getCost())
            .append("leadTime", getLeadTime())
            .append("operSize", getOperSize())
            .append("containerSize", getContainerSize())
            .append("packageSize", getPackageSize())
            .append("boxSize", getBoxSize())
            .append("packMaterial", getPackMaterial())
            .append("productMaterial", getProductMaterial())
            .append("vendorId",getVendorId())
            .append("deleteStatus",getDeleteStatus())
            .toString();
    }
}
